package com.hongyuan.venue.ui.site.view_mode;

import androidx.annotation.NonNull;
import androidx.databinding.ObservableField;

import com.hongyuan.mvvmhabitx.binding.command.BindingAction;
import com.hongyuan.mvvmhabitx.binding.command.BindingCommand;
import com.hongyuan.venue.base.ItemViewModel;
import com.hongyuan.venue.ui.site.beans.SiteBeans;


public class SiteItemViewModel extends ItemViewModel<SiteViewModel> {

    public ObservableField<SiteBeans.ListBean> entity = new ObservableField<>();

    public SiteItemViewModel(@NonNull SiteViewModel viewModel, SiteBeans.ListBean bean) {
        super(viewModel);
        entity.set(bean);
    }

    //条目的点击事件
    public BindingCommand itemClick = new BindingCommand(new BindingAction() {
        @Override
        public void call() {

        }
    });
}
